package edu.zut.hys.chatpageapplication;

import edu.zut.hys.chatpageapplication.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.security.SystemPermission;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        requestPermissionsFromUser(new String[]{SystemPermission.READ_USER_STORAGE,SystemPermission.LOCATION,
                SystemPermission.WRITE_USER_STORAGE, SystemPermission.CAMERA,SystemPermission.MICROPHONE},1123);
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}
